from TOOL import average
from TOOL import fenkuai


def analysis(image_initial, m=4, n=3):
    sixteen_block = fenkuai.qiege(m, n, image_initial, 4)  # 将当前块的图像分割为4*4部分
    bit_index = 0
    bit = []
    for i in range(m):
        for j in range(n):
            image_gray = sixteen_block[i, j, :]  # 分别赋予dA,dB两个变量对应图像
            bit.append(str(average.bit_read(image_gray)))



# analysis("restire.jpg", 4, 3)
